home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / OutOfPhase1.1 Source / OutOfPhase Folder / InstrumentStructure.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-29  |  1.4 KB  |  50 lines  |  [TEXT/KAHL]

  1. /* InstrumentStructure.h */
  2.  
  3. #ifndef Included_InstrumentStructure_h
  4. #define Included_InstrumentStructure_h
  5.  
  6. /* InstrumentStructure module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Memory */
  12. /* LFOListSpecifier */
  13. /* OscillatorListSpecifier */
  14. /* EffectSpecList */
  15.  
  16. /* this is abstracted so that we can somewhat easily change it if we need to */
  17. typedef float InstrNumberType;
  18.  
  19. /* forwards */
  20. struct LFOListSpecRec;
  21. struct OscillatorListRec;
  22. struct EffectSpecListRec;
  23.  
  24. struct InstrumentRec;
  25. typedef struct InstrumentRec InstrumentRec;
  26.  
  27. /* create a new instrument specification record */
  28. InstrumentRec*                        NewInstrumentSpecifier(void);
  29.  
  30. /* dispose of the instrument specification record */
  31. void                                            DisposeInstrumentSpecification(InstrumentRec* Instr);
  32.  
  33. /* get the overall loudness of the instrument */
  34. InstrNumberType                        GetInstrumentOverallLoudness(InstrumentRec* Instr);
  35.  
  36. /* put a new value for overall loudness */
  37. void                                            InstrumentSetOverallLoudness(InstrumentRec* Instr,
  38.                                                         double NewLoudness);
  39.  
  40. /* get the instrument's frequency LFO list */
  41. struct LFOListSpecRec*        GetInstrumentFrequencyLFOList(InstrumentRec* Instr);
  42.  
  43. /* get the instrument's oscillator list */
  44. struct OscillatorListRec*    GetInstrumentOscillatorList(InstrumentRec* Instr);
  45.  
  46. /* get the effect specifier list */
  47. struct EffectSpecListRec*    GetInstrumentEffectSpecList(InstrumentRec* Instr);
  48.  
  49. #endif
  50.